Skip to content

Add Selenium-based ticket monitor with stealth, polling, and alerts#1

Open
AbdulKaiz-007 wants to merge 1 commit intomainfrom
codex/create-automated-movie-ticket-booking-script
Open

Add Selenium-based ticket monitor with stealth, polling, and alerts#1
AbdulKaiz-007 wants to merge 1 commit intomainfrom
codex/create-automated-movie-ticket-booking-script

Conversation

@AbdulKaiz-007
Copy link
Copy Markdown
Owner

Motivation

  • Provide an automated monitor and pre-booking helper for high-demand movie releases that detects the booking CTA and advances through booking steps while keeping a human in the loop for payment.
  • Reduce bot-detection risk by using selenium_stealth and rotating User-Agent strings.
  • Preserve authenticated sessions via a persistent Chrome profile so manual logins/OTPs are not required during a rush.
  • Notify the user immediately (desktop audio + mobile push) and keep the browser foregrounded at the payment step for manual authorization.

Description

  • Added michael_jackson_ticket_bot.py, a Selenium script that uses selenium_stealth, a rotating User-Agent, and WebDriverWait/Expected Conditions to poll the target URL and click the booking flow until the payment page is reached.
  • Implemented persistent session support via --user-data-dir and --profile-directory, a 3-minute default polling interval (--poll-seconds = 180), and an optional --prefer-imax flag to prefer IMAX showings.
  • Added notification hooks: system audio alerts (winsound on Windows, osascript on macOS, terminal bell fallback) and optional Pushbullet/Telegram API calls, plus best-effort browser foregrounding and a keep_session_alive loop for manual payment.
  • Added sample_selectors.json as a selectors template, SELECTOR_GUIDE.md with instructions to find stable CSS selectors, and requirements.txt listing selenium, selenium-stealth, webdriver-manager, and requests.

Testing

  • Compiled the script to validate syntax with python -m py_compile michael_jackson_ticket_bot.py and the compilation succeeded.
  • No site-specific runtime tests were executed because selectors must be customized per target page and live-site interactions depend on the ticketing site behavior.

Codex Task

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant